package GUI;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.ImageIcon;


public class PanelSTART extends javax.swing.JPanel{
	private javax.swing.JButton botaoAJUDA;
	private javax.swing.JButton botaoBebidas;
	private javax.swing.JButton botaoMASSAS;
	private javax.swing.JButton botaoPIZZA;
	private javax.swing.JButton botaoSOBREMESAS;
	private javax.swing.JLabel labelLOGOmichelli;	
	private PanelTemplateGeral panelParaMassas;
	private JanelaPrincipal janela;
	
	public PanelSTART(JanelaPrincipal janela) {
		this.janela = janela;
		initComponents();
		
	}

	private void initComponents() {
		this.botaoMASSAS = new javax.swing.JButton();
		this.botaoPIZZA = new javax.swing.JButton();
		this.botaoBebidas = new javax.swing.JButton();
		this.botaoSOBREMESAS = new javax.swing.JButton();
		this.setBotaoAJUDA(new javax.swing.JButton());
		this.labelLOGOmichelli = new javax.swing.JLabel();

		this.setBackground(new Color(193,9,9));
		this.setMaximumSize(new java.awt.Dimension(1280, 1024));
		this.setMinimumSize(new java.awt.Dimension(1024, 768));
		this.setName("Form");
		this.setBorder(null);
		this.setLocation(100, -10);
		this.setBounds(10, 10, 100, 100);

		this.inicializarBotaoMassas();
		this.inicializarBotaoPizzas();
		this.inicializarBotaoBebidas();
		this.inicializarBotaoSobremesas();
		this.inicializarBotaoAjuda();
		this.inicializarLabelLogoMichelli();
		this.gerarLayout();
	}

	private void inicializarBotaoMassas() {
		this.botaoMASSAS.setFont(new Font("Traditional Arabic", 1,36));
		this.botaoMASSAS.setText("Massas");
		this.botaoMASSAS.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new Color(20,20,20), new Color(240,240,240), new Color(240,240,240), new Color(0,0,0)));
		this.botaoMASSAS.setName("botaoMASSAS");
		this.botaoMASSAS.addMouseListener(this.janela);
	}

	private void inicializarBotaoPizzas() {
		this.botaoPIZZA.setFont(new Font("Traditional Arabic", 1,36)); 
		this.botaoPIZZA.setText("Pizza");
		this.botaoPIZZA.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new Color(20,20,20), new Color(240,240,240), new Color(240,240,240), new Color(0,0,0)));
		this.botaoPIZZA.setName("botaoPIZZA");
		this.botaoPIZZA.addMouseListener(this.janela);
	}

	private void inicializarBotaoBebidas() {
		this.botaoBebidas.setFont(new Font("Traditional Arabic", 1,36));
		this.botaoBebidas.setText("Bebidas");
		this.botaoBebidas.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new Color(20,20,20), new Color(240,240,240), new Color(240,240,240), new Color(0,0,0)));
		this.botaoBebidas.setName("botaoBebidas");
		this.botaoBebidas.addMouseListener(this.janela);
	}

	private void inicializarBotaoSobremesas() {
		this.botaoSOBREMESAS.setFont(new Font("Traditional Arabic", 1,36));
		this.botaoSOBREMESAS.setText("Sobremesas");
		this.botaoSOBREMESAS.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new Color(20,20,20), new Color(240,240,240), new Color(240,240,240), new Color(0,0,0)));
		this.botaoSOBREMESAS.setName("botaoSOBREMESAS");
		this.botaoSOBREMESAS.addMouseListener(this.janela);
	}

	private void inicializarBotaoAjuda() {
		this.getBotaoAJUDA().setBackground(new Color(255,255,255));
		this.getBotaoAJUDA().setFont(new Font("Traditional Arabic", 1,36));
		this.getBotaoAJUDA().setText("?");
		this.getBotaoAJUDA().setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		this.getBotaoAJUDA().setName("botaoAJUDA");
		this.getBotaoAJUDA().addMouseListener(this.janela);
	}

	private void inicializarLabelLogoMichelli() {
		this.labelLOGOmichelli.setIcon(new ImageIcon("logoMICHELLI2.jpg","logotipo do michelli"));
		this.labelLOGOmichelli.setText("labelLOGOmichelli");  
		this.labelLOGOmichelli.setName("labelLOGOmichelli");
	}

	private void gerarLayout() {
		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
						.addContainerGap(60, Short.MAX_VALUE)
						.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
								.addGroup(layout.createSequentialGroup()
										.addComponent(botaoMASSAS, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(botaoPIZZA, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(botaoBebidas, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(botaoSOBREMESAS)
										.addGap(63, 63, 63))
										.addGroup(layout.createSequentialGroup()
												.addComponent(labelLOGOmichelli, javax.swing.GroupLayout.PREFERRED_SIZE, 879, javax.swing.GroupLayout.PREFERRED_SIZE)
												.addGap(18, 18, 18)
												.addComponent(getBotaoAJUDA(), javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))
												.addGap(24, 24, 24))
		);
		layout.setVerticalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(layout.createSequentialGroup()
						.addContainerGap()
						.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addComponent(getBotaoAJUDA())
								.addComponent(labelLOGOmichelli))
								.addGap(221, 221, 221)
								.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
										.addComponent(botaoSOBREMESAS, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
										.addComponent(botaoBebidas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
										.addComponent(botaoMASSAS)
										.addComponent(botaoPIZZA))
										.addGap(55, 55, 55))
		);
	}


	public void setBotaoAJUDA(javax.swing.JButton botaoAJUDA) {
		this.botaoAJUDA = botaoAJUDA;
	}


	public javax.swing.JButton getBotaoAJUDA() {
		return botaoAJUDA;
	}

	public javax.swing.JButton getBotaoBebidas() {
		return botaoBebidas;
	}

	public void setBotaoBebidas(javax.swing.JButton botaoBebidas) {
		this.botaoBebidas = botaoBebidas;
	}

	public javax.swing.JButton getBotaoMASSAS() {
		return botaoMASSAS;
	}

	public void setBotaoMASSAS(javax.swing.JButton botaoMASSAS) {
		this.botaoMASSAS = botaoMASSAS;
	}

	public javax.swing.JButton getBotaoPIZZA() {
		return botaoPIZZA;
	}

	public void setBotaoPIZZA(javax.swing.JButton botaoPIZZA) {
		this.botaoPIZZA = botaoPIZZA;
	}

	public javax.swing.JButton getBotaoSOBREMESAS() {
		return botaoSOBREMESAS;
	}

	public void setBotaoSOBREMESAS(javax.swing.JButton botaoSOBREMESAS) {
		this.botaoSOBREMESAS = botaoSOBREMESAS;
	}

	public javax.swing.JLabel getLabelLOGOmichelli() {
		return labelLOGOmichelli;
	}

	public void setLabelLOGOmichelli(javax.swing.JLabel labelLOGOmichelli) {
		this.labelLOGOmichelli = labelLOGOmichelli;
	}

	public PanelTemplateGeral getPanelParaMassas() {
		return panelParaMassas;
	}

	public void setPanelParaMassas(PanelTemplateGeral panelParaMassas) {
		this.panelParaMassas = panelParaMassas;
	}

}
